package common

import grails.util.Holders

class HttpUrlConstants {
    /**
     * cookie的域
     */
    static String cookieDomain = Holders.getConfig().getProperty('webroots.cookieDomain')
    /**
     * cookie的路径
     */
    static String cookiePath = Holders.getConfig().getProperty('webroots.cookiePath')
    /**
     * 跳转地址
     */
    /** 超时 **/
    static String LOGIN_FORWARD_JUMP = Holders.getConfig().getProperty('webroots.forwardPath.auth') + "login_forward_jump"
    static String ACCID_FORWARD_JUMP = Holders.getConfig().getProperty('webroots.forwardPath.auth') + "accid_forward_jump"
    /**
     * 检查sessionId,并且获取权限
     */
    static String checkAndGetAuth = Holders.getConfig().getProperty('webroots.contextPath.authapi') + 'auth/checkAndGetAuth'
    static String FILE_URL_PATH = Holders.getConfig().getProperty('webroots.fileUrlPath')
    static String getSingleLoginState = Holders.getConfig().getProperty('webroots.contextPath.authapi') + "auth/getSingleLoginState"
    static String GET_AUTH_STAFF_BY_ROLE_CODE = Holders.getConfig().getProperty('webroots.contextPath.authapi') + "auth/getAuthStaffByRoleCode"
    /**
     * 判断日期是否是工作日的接口
     */
    public static String CHECK_IF_WORK_DAY = 'http://api.goseek.cn/Tools/holiday?date='
}
